import request from '@/utils/request'

// 分页查询直播数据
export function pageLiveRoomApply(qurey) {
  return request({
    url: '/user/liveRoomApply/paging',
    method: 'get',
    params: qurey
  })
}

// 分页查询直播数据
export function countLiveRoom(liveRoomApplyDTO) {
  return request({
    url: '/user/liveRoomApply/countLiveRoom',
    method: 'get',
    params: liveRoomApplyDTO
  })
}

/**
 * 获取信息
 * @param memberId
 */
export function getLiveRoomApply(applyId) {
  return request({
    url: '/user/liveRoomApply/getLiveRoomApply',
    method: 'get',
    params: { applyId }
  })
}

// 微客 启用/禁用
export function saveRoom(liveRoomApplyDTO) {
  return request({
    url: '/user/liveRoomApply/save',
    method: 'post',
    data: liveRoomApplyDTO
  })
}

// 新增或更新店播申请表
export function saveLiveRoomApply(liveRoomApplyDTO) {
  return request({
    url: '/user/liveRoomApply/saveLiveRoomApply',
    method: 'post',
    data: liveRoomApplyDTO
  })
}
